import React, { Component } from 'react'
import { Route, Switch } from 'react-router-dom';
import './product.less'

import ProductHome from './product-home'
import productDetail from './product-detail'
import ProductAddUpdate from './product-add-update'

export default class Product extends Component {
  render() {
    return (
      <div>
        <Switch>
          <Route path="/admin/product/detail" component={productDetail} />
          <Route path="/admin/product/addupdate" component={ProductAddUpdate} />
          <Route path="/admin/product" component={ProductHome}/>>
        </Switch>
      </div>
    )
  }
}
